From: Christoph Egger Date: Thu, 26 May 2011 14:43:22 +0000 (+0100) Subject: tools/libfsimage: build fix (ctype macros applied to char) X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~10276 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=393375e7271d4a5576ad740a304f9874d6958990;p=xen.git tools/libfsimage: build fix (ctype macros applied to char) Fix warning: array subscript has type 'char' Signed-off-by: Christoph Egger Acked-by: Ian Jackson Committed-by: Ian Jackson --- diff --git a/tools/libfsimage/xfs/fsys_xfs.c b/tools/libfsimage/xfs/fsys_xfs.c index 6366d16d0d..0261a5284a 100644 --- a/tools/libfsimage/xfs/fsys_xfs.c +++ b/tools/libfsimage/xfs/fsys_xfs.c @@ -571,7 +571,7 @@ xfs_dir (fsi_file_t *ffi, char *dirname) continue; } - if (!*dirname || isspace (*dirname)) { + if (!*dirname || isspace ((uint8_t)*dirname)) { if ((di_mode & IFMT) != IFREG) { errnum = ERR_BAD_FILETYPE; return 0; @@ -588,7 +588,8 @@ xfs_dir (fsi_file_t *ffi, char *dirname) for (; *dirname == '/'; dirname++); - for (rest = dirname; (ch = *rest) && !isspace (ch) && ch != '/'; rest++); + for (rest = dirname; (ch = *rest) + && !isspace ((uint8_t)ch) && ch != '/'; rest++); *rest = 0; name = first_dentry (ffi, &new_ino);